let vm = new Vue({
    el: '.main-content',
    data: {
        qualificationInfo: {}
    },
    methods: {
        findById:function (id) {
            axios.get('/guguanjia/qualification/get?id='+id).then(function (resp) {
                vm.$data.qualificationInfo = resp.data;
            });
        },

        doUpdate:function (qualification) {
            axios({
                url: "/guguanjia/qualification/updateById",
                method: "POST",
                data: qualification,
            }).then(response=>{
                let index = parent.layer.getFrameIndex(window.name);
                parent.layer.close(index)
            }).catch(error=>{
                layer.msg(error.message)
            })
        },

        doUpdate2:function (qualification) {
            axios({
                url: "/guguanjia/qualification/updateById2",
                method: "POST",
                data: qualification,
            }).then(response=>{
                let index = parent.layer.getFrameIndex(window.name);
                parent.layer.close(index)
            }).catch(error=>{
                layer.msg(error.message)
            })
        }

    }
});
function child2(data,index) {
    vm.findById(data);
}